package com.sp.scmdb.bean;

import java.util.HashMap;

import org.joda.time.DateTime;

public class EmpReportBean extends PageBean {
	private String empName;
	private String labelID;
	private String depName;
	private String empID;
	private int depID;
	private String inTime;
	private String outTime;
	private java.util.Map<DateTime, DateTime> dataMap = new HashMap<DateTime, DateTime>();
	private int dutyID;
	private int workTypeID;
	private Integer gong;
	private String realTime;
	private String shiftName;
	private String shiftID;

	
	public String getShiftID() {
		return shiftID;
	}

	public void setShiftID(String shiftID) {
		this.shiftID = shiftID;
	}

	public String getShiftName() {
		return shiftName;
	}

	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}

	public String getEmpID() {
		return empID;
	}

	public void setEmpID(String empID) {
		this.empID = empID;
	}

	public String getLabelID() {
		return labelID;
	}

	public void setLabelID(String labelID) {
		this.labelID = labelID;
	}

	public String getInTime() {
		return inTime;
	}

	public void setInTime(String inTime) {
		this.inTime = inTime;
	}

	public String getOutTime() {
		return outTime;
	}

	public void setOutTime(String outTime) {
		this.outTime = outTime;
	}

	public String getRealTime() {
		return realTime;
	}

	public void setRealTime(String realTime) {
		this.realTime = realTime;
	}

	public Integer getGong() {
		return gong;
	}

	public void setGong(Integer gong) {
		this.gong = gong;
	}

	public String getDepName() {
		return depName;
	}

	public java.util.Map<DateTime, DateTime> getDataMap() {
		return dataMap;
	}

	public void setDataMap(java.util.Map<DateTime, DateTime> dataMap) {
		this.dataMap = dataMap;
	}

	public void setDepName(String depName) {
		this.depName = depName;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public int getDepID() {
		return depID;
	}

	public void setDepID(int depID) {
		this.depID = depID;
	}

	public int getDutyID() {
		return dutyID;
	}

	public void setDutyID(int dutyID) {
		this.dutyID = dutyID;
	}

	public int getWorkTypeID() {
		return workTypeID;
	}

	public void setWorkTypeID(int workTypeID) {
		this.workTypeID = workTypeID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + depID;
		result = prime * result + dutyID;
		result = prime * result + ((empName == null) ? 0 : empName.hashCode());
		result = prime * result + ((inTime == null) ? 0 : inTime.hashCode());
		result = prime * result + ((labelID == null) ? 0 : labelID.hashCode());
		result = prime * result + ((outTime == null) ? 0 : outTime.hashCode());
		result = prime * result + workTypeID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EmpReportBean other = (EmpReportBean) obj;
		if (depID != other.depID)
			return false;
		if (dutyID != other.dutyID)
			return false;
		if (empName == null) {
			if (other.empName != null)
				return false;
		} else if (!empName.equals(other.empName))
			return false;
		if (inTime == null) {
			if (other.inTime != null)
				return false;
		} else if (!inTime.equals(other.inTime))
			return false;
		if (labelID == null) {
			if (other.labelID != null)
				return false;
		} else if (!labelID.equals(other.labelID))
			return false;
		if (outTime == null) {
			if (other.outTime != null)
				return false;
		} else if (!outTime.equals(other.outTime))
			return false;
		if (workTypeID != other.workTypeID)
			return false;
		return true;
	}

}
